package it11.Capood.DataLogic;
import java.util.Date;


public class TextMessage extends Message {

	private static final long serialVersionUID = 1L;
	private String message;
	
	public TextMessage(String msg) {
		super(new Date(), Message.Type.TEXT);
		message = msg;
	}
	
	public String getMessage(){
		return message;
	}
	
	public String toString () {
		return super.toString()  + "\n" + getMessage();
	}

}
